package com.levenx.authModel.controller;

import com.levenx.authModel.service.MenuService;
import com.levenx.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class MenuController {

    @Autowired
    private MenuService menuService;


    @GetMapping("/menu/all")
    public Result initMenu(){
        return Result.newResult(menuService.initMenu());
    }
}
